package com.itheima.entry;

import com.itheima.domain.NuoJiYa;
import com.itheima.domain.Phone;
import com.itheima.domain.Sanxing;

public class Test {
    public static void main(String[] args) {
        Phone p1=new Sanxing("三星","1234","红色");
        Phone p2=new NuoJiYa();
        p2.Call();
        p2.Message();
        p1.Call();
        p1.Message();
        Sanxing sx=new Sanxing();
        sx.watch();
    }
}